package com.wandian.texas.command.texas;

import com.wandian.texas.BaseCommandObject;
import com.wandian.texas.CommandObject;
import com.wandian.texas.UserMgr;
import com.wandian.command.Cmd;
import com.wandian.command.UserCommand;

/**
 * 1为系统保留的命令，不做网络cmd
 * 
 * @author long
 * @Create 2012-10-3 下午4:56:29
 * @QQ 108232706
 * @version 1.0
 */
@Cmd(code = 5, desc = "")
public class OnDisconncetCmd extends UserCommand {
	@Override
	public void execute(BaseCommandObject cmdObject) {
		super.execute(cmdObject);
		String msgString = cmdObject.readString();
		cmdObject.writeBegin();
		cmdObject.writeString("掉线去吧");
		cmdObject.writeEnd();
		// 告诉外界，这个人离开啦
		UserMgr.I().SendData(cmdObject);
	}
}
